<?php
namespace Admin\Model;
use Think\Model;
class LoginModel  extends Model  {
    protected $_auto = array(
        array('createtime','getdate',self::MODEL_INSERT, 'callback'),
	array('password','md5', self::MODEL_INSERT, 'function'),
    );
    function getdate(){
        return date('Y-m-d');
    }

}
